package com.elinshaw.pattern.per;

import com.elinshaw.BasicThreadPool;
import com.elinshaw.ThreadPool;

/**
 * @author Administrator
 */
public class Operator {

    private final ThreadPool threadPool = new BasicThreadPool(2, 6, 4, 1000);

    public void call(String business) {
        TaskHandler taskHandler = new TaskHandler(new Request(business));
        //  new Thread(taskHandler).start();
        threadPool.execute(taskHandler);
    }

}
